home *** CD-ROM | disk | FTP | other *** search
/ Erotic Games: Memory / Erotic Games: Memory.iso / mac / air_installers / AdobeAIR.exe / setup.swf / scripts / _PanelStyle.as < prev    next >
Text File  |  2009-02-12  |  2KB  |  66 lines

  1. package
  2. {
  3.    import mx.core.IFlexModuleFactory;
  4.    import mx.core.mx_internal;
  5.    import mx.skins.halo.PanelSkin;
  6.    import mx.skins.halo.TitleBackground;
  7.    import mx.styles.CSSStyleDeclaration;
  8.    import mx.styles.StyleManager;
  9.    
  10.    public class _PanelStyle
  11.    {
  12.        
  13.       
  14.       public function _PanelStyle()
  15.       {
  16.          super();
  17.       }
  18.       
  19.       public static function init(param1:IFlexModuleFactory) : void
  20.       {
  21.          var effects:Array = null;
  22.          var fbs:IFlexModuleFactory = param1;
  23.          var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("Panel");
  24.          if(!style)
  25.          {
  26.             style = new CSSStyleDeclaration();
  27.             StyleManager.setStyleDeclaration("Panel",style,false);
  28.             effects = style.mx_internal::effects;
  29.             if(!effects)
  30.             {
  31.                effects = style.mx_internal::effects = new Array();
  32.             }
  33.             effects.push("resizeEndEffect");
  34.             effects.push("resizeStartEffect");
  35.          }
  36.          if(style.defaultFactory == null)
  37.          {
  38.             style.defaultFactory = function():void
  39.             {
  40.                this.borderColor = 14869218;
  41.                this.paddingLeft = 0;
  42.                this.roundedBottomCorners = false;
  43.                this.dropShadowEnabled = true;
  44.                this.resizeStartEffect = "Dissolve";
  45.                this.borderSkin = PanelSkin;
  46.                this.statusStyleName = "windowStatus";
  47.                this.borderAlpha = 0.4;
  48.                this.borderStyle = "default";
  49.                this.paddingBottom = 0;
  50.                this.resizeEndEffect = "Dissolve";
  51.                this.paddingTop = 0;
  52.                this.borderThicknessRight = 10;
  53.                this.titleStyleName = "windowStyles";
  54.                this.cornerRadius = 4;
  55.                this.paddingRight = 0;
  56.                this.borderThicknessLeft = 10;
  57.                this.titleBackgroundSkin = TitleBackground;
  58.                this.borderThickness = 0;
  59.                this.borderThicknessTop = 2;
  60.                this.backgroundColor = 16777215;
  61.             };
  62.          }
  63.       }
  64.    }
  65. }
  66.